package com.song.estore.domain;

/**
 * Created by 范姣姣 on 2015/10/22.
 */
public class Orderitem {
    private String orderId;
    private int productId;
    private int buynum;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getBuynum() {
        return buynum;
    }

    public void setBuynum(int buynum) {
        this.buynum = buynum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Orderitem orderitem = (Orderitem) o;

        if (productId != orderitem.productId) return false;
        if (buynum != orderitem.buynum) return false;
        if (orderId != null ? !orderId.equals(orderitem.orderId) : orderitem.orderId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = orderId != null ? orderId.hashCode() : 0;
        result = 31 * result + productId;
        result = 31 * result + buynum;
        return result;
    }
}
